<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>

<div id="content">
  <div id="main-wrapper">
    <h2 id="first"><bean:message key="login.label.welcome"/></h2>
    <p class="right">
      <span class="bullet">
        <a href="#"><bean:message key="login.label.forgot"/></a>
      </span>
    </p>
    <div class="clearall">
    </div>
        
     <html:form method="post" action="/login">     
  
<!--	<form id="standardform" method="post" action="inputSubmit"> -->
      <fieldset class="last">
        <legend>
           <bean:message key="LoginForm.enter"/> 
        </legend>
        <table class="formtable" cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <th>
                <label for="user">
                  Username:
                </label>
              </th>
              <td>
              <html:text styleClass="textfield" property="username" />
<!--                 <input name="uname" id="user" class="textfield" value="" type="text"/>--></td>
              <td class="info"></td>
            </tr>
            <tr>
              <th>
                <label for="login-pass">
                  Password:
                </label>
              </th>
              <td>
              <html:password styleClass="textfield" property="password" />
<!--                 <input name="passw" id="login-pass" class="textfield" type="password"/>
                <input type="hidden" name="loginvalue" value="loginAttempt" />  --> </td> 
              <td class="info"></td>
            </tr>
            <tr class="last">
              <th>
              </th>
              <td>
<!--                 <input name="remember" id="remember" type="checkbox"/>  -->
                <label for="remember" class="alt">
                   <bean:message key="login.label.remember"/>
                </label>
                <a href="http://www.wishlistr.com/help/#rememberme">(?)</a></td>
              <td class="info"></td>
            </tr>
          </tbody>
        </table>
        </fieldset>
        
        <c:if test="${messaggio}" >                
        	<div class="error">
				<p><strong><bean:message key="login.error.sorry"/></strong><bean:message key="login.error.please"/></p>
				<p><bean:message key="login.error.forgot"/><a href="/help/forgot-password/"><bean:message key="login.error.mail"/></a>.</p>
			<div class="clearall"></div>
			</div>
 		</c:if> 
         
        <table class="formtablesubmit" cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <th>
              </th>
              <td>
              
              <html:submit styleClass="img-btn" value="Submit" />
              
<!--                 <input class="img-btn" name="Submit" src="../img/btn-signin.gif" alt="Sign in!" type="image" />  -->
                <img src="../img/throbber.gif" style="display: none;" id="waitimg" alt=""/>
                <br />
                </td>
              <td class="info"></td>
            </tr>
          </tbody>
        </table>
    </html:form>
  </div>
</div>